import request from '@/utils/request'

// 查询模板管理列表
export function listPerformancecomparisons(query) {
  return request({
    url: '/performancecomparisons/performancecomparisons/list',
    method: 'get',
    params: query
  })
}

// 查询模板管理详细
export function getPerformancecomparisons(id) {
  return request({
    url: '/performancecomparisons/performancecomparisons/' + id,
    method: 'get'
  })
}

// 新增模板管理
export function addPerformancecomparisons(data) {
  return request({
    url: '/performancecomparisons/performancecomparisons',
    method: 'post',
    data: data
  })
}

// 修改模板管理
export function updatePerformancecomparisons(data) {
  return request({
    url: '/performancecomparisons/performancecomparisons',
    method: 'put',
    data: data,
    Headers: {
      'Content-Type': 'application/json'
    }
  })
}

// 删除模板管理
export function delPerformancecomparisons(id) {
  return request({
    url: '/performancecomparisons/performancecomparisons/' + id,
    method: 'delete'
  })
}
